<?php

/**
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/12/19
 * Time: 下午3:06
 */
class Report extends MY_Api_Controller
{
    /**
     * 警告
     */
    public function warning()
    {
        $uid    = $this->uid;
        $to_uid = (int)$this->input->get_post('to_uid');
        $ds_id  = trim($this->input->get_post('ds_id'));
        $reason = trim($this->input->get_post('reason'));


        $this->load->service('direct_seeding/service_direct_seeding_report');
        $data = $this->service_direct_seeding_report->warning($uid, $to_uid, $ds_id, $reason);


        $this->json_output($data['data'], $data['status']);
    }
}